package com.spj.dao;

import com.spj.entity.QueryCondition;
import com.spj.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author :spj
 * @Date:2022/4/14
 * @description:
 */
@Mapper
public interface UserDao {
    User selectUserByName(String name);
    int selectUserRoleIdByName(String name);
    List<User> selectAllUsers(QueryCondition queryCondition);
    User selectUserByUser(@Param("account") String account,@Param("password") String password);
    void deleteUserById(int id);
    void updateUser(User user);
    void insertUser(User user);
}
